home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 120
/
Vol 120.iso
/
games
/
titans
/
beastboy.swf
/
scripts
/
DefineSprite_271
/
frame_1
/
DoAction.as
Wrap
Text File
|
2010-11-09
|
495b
|
31 lines
range = 150;
ys = 3;
ymin = _Y - range;
ymax = _Y + range;
shotdelay = 22;
d = shotdelay;
bulletrange = Number(_name);
_name = random(9999) + "-" + random(9999) + "-" + random(9999);
onenterframe = function()
{
_Y = _Y + ys;
if(_Y > ymax)
{
_Y = ymax;
ys = - ys;
}
else if(_Y < ymin)
{
_Y = ymin;
ys = - ys;
}
d--;
if(!d)
{
d = shotdelay;
bulletlaunch(3,bulletrange);
}
cekhitp(z);
};
stop();